package com.nudge.portlet.chart;

/**
 * Bean used for construct a point in a chart.
 *
 * @author Frederic Massart
 */
public class ConsolidatePoint {

    /**
     * This field contains a variable used to compute a weighted average of the response time. <br />
     * The sum of the cumulResponseTime must be divided by the sum of counts when no nudgeData will be added to the
     * consolidatePoint
     */
    private Double cumulResponseTime;

    private Long sumOfSatisfyingClicks;

    private Long sumOfTolerableClicks;

    private Long counts;

    private Integer errors;

    private Integer alerts;

    private Double apdex;

    private Double avgResponseTime;

    /**
     * Indicate the number of samples used to aggregate the other data.
     */
    private int numberOfSamples;

    public Double getCumulResponseTime() {
        return cumulResponseTime;
    }

    public void setCumulResponseTime(Double cumulResponseTime) {
        this.cumulResponseTime = cumulResponseTime;
    }


    public Long getSumOfSatisfyingClicks() {
        return sumOfSatisfyingClicks;
    }

    public void setSumOfSatisfyingClicks(Long sumOfSatisfyingClicks) {
        this.sumOfSatisfyingClicks = sumOfSatisfyingClicks;
    }

    public Long getSumOfTolerableClicks() {
        return sumOfTolerableClicks;
    }

    public void setSumOfTolerableClicks(Long sumOfTolerableClicks) {
        this.sumOfTolerableClicks = sumOfTolerableClicks;
    }

    public Long getCounts() {
        return counts;
    }

    public void setCounts(Long counts) {
        this.counts = counts;
    }

    public Integer getErrors() {
        return errors;
    }

    public void setErrors(Integer errors) {
        this.errors = errors;
    }

    public Integer getAlerts() {
        return alerts;
    }

    public void setAlerts(Integer alerts) {
        this.alerts = alerts;
    }

    public int getNumberOfSamples() {
        return numberOfSamples;
    }

    public void setNumberOfSamples(int numberOfSamples) {
        this.numberOfSamples = numberOfSamples;
    }

    public Double getApdex() {
        return apdex;
    }

    public void setApdex(Double apdex) {
        this.apdex = apdex;
    }

    public Double getAvgResponseTime() {
        return avgResponseTime;
    }

    public void setAvgResponseTime(Double avgResponseTime) {
        this.avgResponseTime = avgResponseTime;
    }
}
